using System;
using System.Data;
using System.Xml;
using OR.Reuse.Persistence;
using System.Diagnostics;



namespace OR.Lazarus.Library.DataTier.Compiled
{
   public class FilterDetail : OR.Lazarus.Library.DataTier.Compiled.Lazarus.FilterDetail
   {
       protected string mDBName;

       /// <summary>
       /// 
       /// </summary>
       public System.String DBName
       {
           get { return mDBName; }
           set { mDBName = value; }
       }

       public override void LoadXml(XmlElement pSource)
       {
           mDBName = DataUtility.GetString(pSource, "dbname");
           
           base.LoadXml(pSource);
       }

       public override XmlElement SaveXml(XmlDocument p_docContext)
       {
           XmlElement rtnVal = base.SaveXml(p_docContext);

           Debug.Assert(rtnVal != null);

           if (!String.IsNullOrEmpty(mDBName))
           {
               rtnVal.SetAttribute("dbname", mDBName);
           }

           return rtnVal;
       }

       public override FilterDetail CloneTyped()
       {
           FilterDetail rtnVal = base.CloneTyped();

           rtnVal.DBName = mDBName;

           return rtnVal;
       }
   }
}
   